// 商品分类
export interface Category {
  id: number
  name: string
  category1Id?: number
  category2Id?: number
}

// 属性值
export interface AttrValue {
  id?: number
  attrId?: number
  valueName: string
  flag?: boolean // 是否处于编辑状态
}

export type AttrValueList = AttrValue[]

// 属性
export interface Attr {
  id?: number | string | null
  attrName: string
  attrValueList: AttrValueList
  categoryId: number | string | null
  categoryLevel: number
  attrIdAndValueId?: string
}
